// Hostage.h

#pragma once

#include "Agent.h"

// HOSTAGE STATES
enum { FREE, NOTFREE };

class Hostage : public Agent
{

private:
	int currentState;
	int hostageID;

protected:
	bool isFlipped;

public:

	// default constructor.
	Hostage( char * fileName, int id, Pathfinder & pather, Grid<char> & occGrid, 
		float walkSpeed = .05, float turnSpeed = .09 );

	// default destructor.
	~Hostage(void);

	// get Hostage ID
	int getID();

	// get state.
	int getState();

	// set state.
	void setState(int state);

	// check if hostile is nearby
	bool Hostage::hostileNear();

	// update hostile 
	void Hostage::update();

};
